import Vue from'vue'
import VueX from 'vuex'
import home from './home/index'
import search from './search/index'
import detail from './detail/index'
import shopcart from'./shopcart/index'
import trade from'./trade/index'
import user from './user/index'
//import home from './home.js'
//import search from './search.js'
//import detail from './detail.js'
Vue.use(VueX)

export default new VueX.Store({
    modules:{
        home,
        search,
        detail,
        shopcart,
        trade,
        user
    }
})